/*
 * @Author: 小豪
 * @Description:
 * @Date: 2023-10-24 19:32:23
 * @LastEditTime: 2023-10-24 19:32:47
 * @FilePath: \tnt\gohub1\pkg\verifycode\Errors.go
 */
package verifycode

type Error struct {
	ErrCode int
	ErrMsg  string
}

func NewError(code int, msg string) *Error {
	return &Error{ErrCode: code, ErrMsg: msg}
}

func (err *Error) Error() string {
	return err.ErrMsg
}
